// const API_CI = `${window.location.origin}/v4/gate/`;
const API_CI = `${window.location.origin}/gate/`;

module.exports = {
  api: {
    // 用户登录
    login: `${API_CI}back/sys/user/login`,
    // 根据Token 获取用户访问目录
    getAdminUserMenu: `${API_CI}back/sys/menu/user/all`,
    // /back/sys/user/detail/{id}
    getAdminUserDetail: `${API_CI}back/sys/user/detail`,
    // POST /sys/group/roles/authority
    getRoleList: `${API_CI}back/sys/group/all/roles`,
    // 操作员管理
    getSysUserList: `${API_CI}back/sys/user/page`,
    updateSysUserStatus: `${API_CI}back/sys/user/accountStatus/update`,
    getSysUserInfo: `${API_CI}back/sys/user/detail`,
    addSysUser: `${API_CI}back/sys/user/add`,
    updateSysUser: `${API_CI}back/sys/user/update`,
    // 师傅管理
    getMasterList: `${API_CI}back/worker/page`,
    deleteMaster: `${API_CI}back/worker/delete`,
    changeMasterPwd: `${API_CI}back/worker/password/update`,
    getMasterInfo: `${API_CI}back/worker/detail`,
    updateMaster: `${API_CI}back/worker/update`,
    addMaster: `${API_CI}back/worker/add`,
    updateMasterStatus: `${API_CI}back/worker/account/status/update`,
    getworkerList: `${API_CI}back/worker/list`,
    // 用户管理
    getUserList: `${API_CI}back/user/page`,
    checkUser: `${API_CI}back/user/check`,
    getUserInfo: `${API_CI}back/user/detail`,
    updateUser: `${API_CI}back/user/update`,
    // 宽带管理 业务管理
    getBussinessList: `${API_CI}back/broadband/bussiness/page`,
    addBussiness: `${API_CI}back/broadband/bussiness/add`,
    getDistrictListByBussiness: `${API_CI}back/broadband/bussiness/district/list`,
    getBussinessDetail: `${API_CI}back/broadband/bussiness/detail`,
    getBussinessLists: `${API_CI}back/broadband/bussiness/list`,
    // 宽带管理 套餐管理
    getPackagePage: `${API_CI}back/broadband/package/page`,
    getPackageLists: `${API_CI}back/broadband/package/list`,
    addPackage: `${API_CI}back/broadband/package/add`,
    deletePackage: `${API_CI}back/broadband/package/delete`,
    checkPackage: `${API_CI}back/broadband/package/check`,
    releasePackage: `${API_CI}back/broadband/package/release`,
    getPackageInfo: `${API_CI}back/broadband/package/detail`,
    updatePackage: `${API_CI}back/broadband/package/update`,
    // 宽带管理 区域管理
    getDistrictList: `${API_CI}back/broadband/district/list`,
    getDistrictPage: `${API_CI}back/broadband/district/page`,
    addDistrict: `${API_CI}back/broadband/district/add`,
    deleteDistrict: `${API_CI}back/broadband/district/delete`,
    getCommunityListByDistrict: `${API_CI}back/broadband/district/community/list`, // 区域内小区列表
    updateDistrict: `${API_CI}back/broadband/district/update`,
    getDistrictInfo: `${API_CI}back/broadband/district/detail`,
    getProvincesList: `${API_CI}back/sys/administrative/division/treeAll`,
    // 宽带管理 小区管理
    getCommunityPage: `${API_CI}back/community/page`,
    getCommunityList: `${API_CI}back/community/list`,
    addCommunity: `${API_CI}back/community/add`,
    deleteCommunity: `${API_CI}back/community/delete`,

    // 网速数据字典
    getNetworkSpeedList: `${API_CI}back/dict/item/list`,
    // 网络运营商字典
    getNetworkOperatorList: `${API_CI}back/dict/item/list`,
    // 字典条件查询
    getDictionariesField: `${API_CI}back/dict/item/list`,
    // 装维订单
    getWorkOrderList: `${API_CI}back/worker/order/page`,
    getWorkOrderDetail: `${API_CI}back/worker/order/detail`,
    orderComplete: `${API_CI}back/worker/order/complete`, // 工单完结
    checkAndAssign: `${API_CI}back/worker/order/checkAndAssign`, // 审核并派工单
    assignMaster: `${API_CI}back/worker/order/assign`, // 审核工单
    getOrderStatusList: `${API_CI}back/worker/order/status/list`, // 工单状态列表

    // 套餐订单 业务订单
    getPackageOrderList: `${API_CI}back/user/packageOrder/page`,
    getPackageOrderDetail: `${API_CI}back/user/packageOrder/detail`,
    updateIsReward: `${API_CI}back/user/packageOrder/isReward`,
    checkOrder: `${API_CI}back/user/packageOrder/check`,
    // 用户宽带管理
    getUserBroadList: `${API_CI}back/user/broadband/page`,
    getUserBroadDetail: `${API_CI}back/user/broadband/detail`,
    updateAccountStatus: `${API_CI}back/user/broadband/account/status/update`,
    uploadFileUrl: `${API_CI}file/upload`,

    // 用户个人首页
    userInfo: `${API_CI}back/sys/user/staging`,
  },
};

